package org.fly.service;



import org.fly.bean.SmsRecord;
import org.fly.bean.common.BusinessException;
import org.fly.bean.query.SmsRecordQuery;
import org.fly.enums.SmsType;

import java.util.List;
import java.util.Map;

/**
* Created by autoCode on 2018-04-10 15:19:44.
*/
public interface SmsRecordService {

    List<SmsRecord> list(SmsRecordQuery query);

    long count(SmsRecordQuery query);

    SmsRecord findById(String id);

    void save(SmsRecord bean)  throws BusinessException;

    void delete(String id);

    void sendVerify(String telephone)  throws BusinessException;

    void sendSms(String telephone, SmsType smsType , String templateId, Map<String,Object> param) throws BusinessException;

    boolean checkVerifyCode(String telephone,String verifyCode);
}
